﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
    if (Request.IsAuthenticated)
    {
%>
        Welcome <b><%=Html.Encode(Page.User.Identity.Name)%></b>!
        [ <%=Html.ActionLink("Wyloguj się", "LogOff", "Account")%> ]
<%
    }
    else
    {
%> 
        [ <%=Html.ActionLink("Zaloguj się", "LogOn", "Account")%> ]
<%
    }
%>
